<form action="{:request()->url()}" autocomplete="off" class="layui-form layui-card" data-auto="true" method="post">
    <div class="layui-card-body padding-left-40">
        <label class="layui-form-item relative block">
            <span class="color-green font-w7">材料编号</span>
            <span class="color-desc margin-left-5">Category Name</span>
            <input class="layui-input" name="material_code" placeholder="请输入材料编号" required value='{$vo.material_code|default=""}'>
            <span class="help-block"><b>必填，</b>请填写材料编号</span>
        </label>
        <label class="layui-form-item relative block">
            <span class="color-green font-w7">材料名称</span>
            <span class="color-desc margin-left-5">Category Name</span>
            <input class="layui-input" name="material_name" placeholder="请输入材料名称" required value='{$vo.material_name|default=""}'>
            <span class="help-block"><b>必填，</b>请填写材料名称，建议字符不要太长，一般4-6个汉字（如：轻轨）</span>
        </label>
        <label class="layui-form-item relative block">
            <span class="color-green font-w7">材料型号</span>
            <span class="color-desc margin-left-5">Category Name</span>
            <input class="layui-input" name="material_model" placeholder="请输入材料型号" required value='{$vo.material_model|default=""}'>
            <span class="help-block"><b>必填，</b>请填写材料型号，建议字符不要太长</span>
        </label>
        <label class="layui-form-item relative block">
            <span class="color-green font-w7">材料单位</span>
            <span class="color-desc margin-left-5">Category Name</span>
            <input class="layui-input" name="material_unit" placeholder="请输入材料单位" required value='{$vo.material_unit|default=""}'>
            <span class="help-block"><b>必填，</b>请填写材料单位（如：个、件...）</span>
        </label>
        <label class="layui-form-item relative block">
            <span class="color-green font-w7">材料价格</span>
            <span class="color-desc margin-left-5">Category Name</span>
            <input class="layui-input" name="material_price" placeholder="请输入材料价格" required value='{$vo.material_price|default=""}'>
            <span class="help-block"><b>必填，</b>请填写材料价格（如：1500.56）</span>
        </label>
    </div>
    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}
    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" data-close data-confirm="确定要取消编辑吗？" type='button'>取消编辑</button>
    </div>
    <script>form.render()</script>
</form>
